package com.jsmile.cloud.msgcenter.zf.req.ali;

import com.alipay.api.AlipayConstants;
import com.alipay.api.DefaultAlipayClient;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AliPayInfo {
    // 请求方式 json
    @Builder.Default
    private String format = AlipayConstants.FORMAT_JSON;
    // 编码格式，目前只支持UTF-8
    @Builder.Default
    private String charset = AlipayConstants.CHARSET_UTF8;
    // 签名方式
    @Builder.Default
    private String signType = AlipayConstants.SIGN_TYPE_RSA2;
    // 接口内容加密方式
    @Builder.Default
    private String encryptType = AlipayConstants.ENCRYPT_TYPE_AES;
    // 网关
    @Builder.Default
    private String url = "https://openapi.alipay.com/gateway.do";
    // 商户APP_ID
    private String appId;
    // 商户RSA 私钥
    private String appPrivateKey;
    // 支付宝公钥
    private String alipayPublicKey;

    private String authToken;

    private String aesKey;

    private DefaultAlipayClient client;
}
